#include "process_pool.hpp"

int main()
{
    Process_Pool pool(5);
    if (!pool.Creat())
    {
        std::cerr << "进程池创建失败！" << std::endl;
        return 1;
    }

    // pool.Debug();
    int cnt = 3;
    while (cnt--)
    {
        pool.Run();
        sleep(1);
    }
    pool.Stop();
    return 0;
}